package com.seguriapp.gwt.shared;

import java.util.Date;
import java.util.List;

import com.seguriapp.entities.MenuLink;

import net.customware.gwt.dispatch.shared.Result;

public class ValidateCredentialsResult implements Result {

  private boolean isValid;
  private String errorMessage;
  private boolean isAdministrator;
  private Date lastDateLoggedIn;
  private List<MenuLink> menuList;
  private List<Long > entitiesList;

  public boolean isValid() {
    return isValid;
  }

  public void setValid(final boolean isValid) {
    this.isValid = isValid;
  }

  public String getErrorMessage() {
    return errorMessage;
  }

  public void setErrorMessage(final String errorMessage) {
    this.errorMessage = errorMessage;
  }

  public boolean isAdministrator() {
    return isAdministrator;
  }

  public void setAdministrator(final boolean isAdministrator) {
    this.isAdministrator = isAdministrator;
  }

  public Date getLastDateLoggedIn() {
    return lastDateLoggedIn;
  }

  public void setLastDateLoggedIn(final Date lastDateLoggedIn) {
    this.lastDateLoggedIn = lastDateLoggedIn;
  }

  public List<MenuLink> getMenuList() {
    return menuList;
  }

  public void setMenuList(final List<MenuLink> menuList) {
    this.menuList = menuList;
  }

  public List<Long> getEntitiesList() {
    return entitiesList;
  }

  public void setEntitiesList(final List<Long> entitiesList) {
    this.entitiesList = entitiesList;
  }

}
